Allow TypeSpec project path to be a github link#13517
Merged
smw-ms merged 10 commits intoAzure:mainfrom Jan 21, 2026
Merged
Conversation
benbp
approved these changes
Jan 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for using GitHub URLs as TypeSpec project paths in addition to local filesystem paths. The implementation allows users to reference TypeSpec projects directly via URLs like https://github.com/Azure/azure-rest-api-specs/blob/main/specification/service/Service.Management.
Key changes:
- Added URL validation for GitHub spec repository URLs with pattern matching
- Extended core TypeSpec helper methods to detect and handle URL inputs
- Enhanced management plane detection to infer from URL path patterns when config files aren't accessible
- Comprehensive test coverage for URL-based operations
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tools/azsdk-cli/Azure.Sdk.Tools.Cli/Helpers/TypeSpecHelper.cs | Added URL detection and validation logic, extended existing methods to handle both local paths and GitHub URLs |
| tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests/Helpers/TypeSpecHelperTests.cs | Added comprehensive test cases for URL validation, management plane detection, and path operations with URLs |
| tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests/Tools/ReleasePlan/ReleasePlanToolTests.cs | Replaced mock TypeSpecHelper with real implementation and added integration test using GitHub URL |
tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests/Helpers/TypeSpecHelperTests.cs
Show resolved
Hide resolved
tools/azsdk-cli/Azure.Sdk.Tools.Cli/Tools/ReleasePlan/ReleasePlanTool.cs
Show resolved
Hide resolved
tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests/Helpers/TypeSpecHelperTests.cs
Show resolved
Hide resolved
benbp
approved these changes
Jan 13, 2026
benbp
approved these changes
Jan 20, 2026
praveenkuttappan
approved these changes
Jan 21, 2026
JennyPng
pushed a commit
to JennyPng/azure-sdk-tools
that referenced
this pull request
Jan 22, 2026
* Allow TypeSpec project path to be a github link * Add url check for IsRepoPathForSpecRepo method * Update Changelog * Respond to copilot * Seperate into url specific helper functions * Add extra url parse test * Respond to copilot comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #13488